package io.renren;

import lombok.Data;

import java.util.Objects;

/**
 * Description
 *
 * @author ext.mahaifu1
 * @ClassName CompareConfDTO
 * @date 2024-01-15
 */
@Data
public class CompareConfDTO {
    private String field1;
    private String field2;

    public CompareConfDTO(String field1, String field2) {
        this.field1 = field1;
        this.field2 = field2;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CompareConfDTO compareConfDTO = (CompareConfDTO) o;
        return Objects.equals(field1, compareConfDTO.field1) &&
                Objects.equals(field2, compareConfDTO.field2);
    }

    @Override
    public int hashCode() {
        return Objects.hash(field1, field2);
    }
}